package com_djm_2025_06_05.demo6;

public abstract class Animal {
    public String name;

    public int age;

    public Animal(String name,int age) {
        this.name = name;
        this.age = age;
    }

    public abstract void eat();

    //游泳 跑步 飞 并不是动物的公共特性，就不抽取到抽象类当中
    //而是用接口的方式进行实现
}
